package cn.bb.dao;

import cn.bb.pojo.User;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class Demo {
    @Test
    public  void test(){
        ApplicationContext app = new ClassPathXmlApplicationContext("spring.xml");
        UserDaoJdbc udj = app.getBean("userDao",UserDaoJdbc.class);
        List<User> list =udj.searchUser();
        System.out.println(list);
    }
}
